package com.xlf.common.core.util;


import lombok.Data;

import java.util.List;

@Data
public class TreeNode <T> {

    private T node;


    TreeNode(T node){
        this.node = node;
    }
    TreeNode(T node,List<TreeNode<T>>children){
        this.node = node;
        this.children = children;
    }
    private List<TreeNode<T>>children;

}
